﻿define('api/enviormentService', [], function() {
	
	return {
		
		//aqi浓度分布
		getAirDistributeByIndex: function(){},
		
		getCityAirRankByIndex:function(){
			var _data;
			ajaxProcess({
	            url : '/pls/gis/emission/polyList',
	            requestType : 'POST',
	            async:false,
	            data : {
	            	arealevel:'2',
	            	areacode:'',
	            	pareacode:'',
	            	year:'',
	            	pollutecode:''
	            },
	            successHandle : function(data) {
	            	console.log(data);
	            	_data = data;
	            }
	        });
			return _data;
		},
		
		getAreaAirRankByIndex:function(){
			var _data;
			ajaxProcess({
	            url : '/pls/gis/emission/polyList',
	            requestType : 'POST',
	            async:false,
	            data : {
	            	arealevel:'2',
	            	areacode:'',
	            	pareacode:'',
	            	year:'',
	            	pollutecode:''
	            },
	            successHandle : function(data) {
	            	console.log(data);
	            	_data = data;
	            }
	        });
			return _data;
		},
		
		getPointAirRankByIndex:function(){
			var _data;
			ajaxProcess({
	            url : '/pls/gis/emission/polyList',
	            requestType : 'POST',
	            async:false,
	            data : {
	            	arealevel:'2',
	            	areacode:'',
	            	pareacode:'',
	            	year:'',
	            	pollutecode:''
	            },
	            successHandle : function(data) {
	            	console.log(data);
	            	_data = data;
	            }
	        });
			return _data;
		}
	};
	
});
